package Chapter22.CollectionsMethod;

import java.util.*;

public class TestAsListMethod {
    public static void main(String[] args) {
        List<String> list1 = Arrays.asList("red", "greed", "blue");
        List<Integer> list2 = Arrays.asList(10, 20, 30, 40, 50);

        System.out.println(list1 instanceof Arrays);
        System.out.println(list1 instanceof ArrayList);
        System.out.println(list2 instanceof LinkedList);
        System.out.println(list2 instanceof Vector);
        System.out.println(list2 instanceof Collection);
        System.out.println(list2 instanceof List);
        System.out.println(list2 instanceof AbstractCollection);
        System.out.println(list2 instanceof AbstractList);
    }
}
